package startup

import (
	"errors"
	"gorm.io/gorm"
	publicBusine "shop-service/business"
	sys "shop-sys/business"
)

func RegisterService(db *gorm.DB) error {
	if db == nil {
		return errors.New("db invalid memory address or nil pointer dereference")
	}
	sys.RegisterSysService()
	publicBusine.RegisterService()

	return nil
}
